package com.gs.api.projects.bzapplets.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gs.api.projects.bzapplets.dao.BzNoticeDao;
import com.gs.api.projects.bzapplets.entity.BzNotice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author guoyunfei on 2021/7/9 14:04
 * @className BzNoticeDao
 * @description TODO
 * @Version 1.0
 */
@Service
public class BzNoticeService extends ServiceImpl<BzNoticeDao,BzNotice> {


    @Autowired
    private BzNoticeDao bzNoticeDao;

    public List<BzNotice> selectList(BzNotice notice){

        List<BzNotice> list = bzNoticeDao.selectList(new QueryWrapper<BzNotice>()
                .eq("enable", notice.getEnable()));
        return list;
    }

}
